Digital Sovereignty for everyone

Abilities

Get User Insights Query Schema

lh-user-insights/get-query-schema Read-only Idempotent

Returns the registered field list (id, label, type, default visibility, filter config) and the operator registry per filter type. Call this first to discover valid `by` values and operators before calling query-users, since fields include dynamic ones (BuddyPress xProfile fields vary per site, custom fields vary per install). Requires install_plugins.

Takes no input.

Query Users

lh-user-insights/query-users Read-only Idempotent

Filters, sorts, and paginates site users through the same query engine as the User Insights admin screen. Call get-query-schema first for valid `by` and `operator` values – fields vary per site (BuddyPress xProfile, custom fields). Results are automatically scoped to the current site on multisite installs. Requires install_plugins.

Parameter Type Required Default Description
filters array of object No Filter conditions, ANDed together. Each item: {by: field id, operator: operator key for that field’s type, condition: value, type: field filter type}. See get-query-schema for valid values.
orderby string No Field id to sort by. Defaults to “registered”.
order string No Sort direction. Defaults to DESC. One of: ASC, DESC.
search string No Matches part of the username, email or display name. Combined with the filters by AND.
number integer No 20 Max results to return.
offset integer No 0 Pagination offset.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.